function getCleanedPostDataFromPostsWarp() {
  const postsWarp = document.querySelector('.posts-warp');

  if (!postsWarp) {
    console.warn('未找到 .posts-warp 元素');
    return;
  }

  const divs = postsWarp.querySelectorAll('.col');
  const outputArray = [];

  divs.forEach((div) => {
    const links = div.querySelectorAll('a');
    const entryTitleElement = div.querySelector('.entry-title');
    const rawTitle = entryTitleElement ? entryTitleElement.textContent : '';

    links.forEach((link) => {
      const backgroundImage = window.getComputedStyle(link).backgroundImage;

      if (backgroundImage && backgroundImage !== 'none') {
        const poster = backgroundImage.match(/url\("(.+?)"\)/)?.[1] || '';
        const title = rawTitle.trim();

        const finalObject = {
          poster,
          title,
          type: [""],
          time: "",
          desc: {
            title: "",
            detail: "",
            tips: ""
          },
          image: [],
          link: [],
          tag: [""]
        };

        outputArray.push(finalObject);
      }
    });
  });

  console.log(outputArray);
}
getCleanedPostDataFromPostsWarp();